import {newRegister} from "@/api/api";

// 注册
export function register (data) {
	return newRegister("/registerCode", data, "POST");
}

// 发送验证码
export function sendCode (date) {
	return newRegister('/phoneCode', date, 'GET')
}

// 查询是否签订协议
export function queryagreeinfo(date) {
	return newRegister('/queryagreeinfo', date, 'GET')
}

// 获取h5协议链接
export function signAcctAgreement (date) {
	return newRegister('/signAcctAgreement', date, 'GET')
}

// 请求绑定银行卡
export function applyBankCardBind (date) {
	return newRegister('/applyBankCardBind', date, 'POST')
}

// 账户开立
export function openAcct (date) {
	return newRegister('/openAcct', date, 'GET')
}

// 确认绑定银行卡
export function bindBankCard (date) {
	return newRegister('/bindBankCard', date, 'POST')
}

// 设置支付密码
export function passwordManagement (date) {
	return newRegister('/passwordManagement', date, 'GET')
}